//
//  FirstTwoCollViewCell.m
//  ShopDemo
//
//  Created by Sunshine on 2018/9/6.
//  Copyright © 2018年 飞扬的青春. All rights reserved.
//

#import "FirstTwoCollViewCell.h"

@implementation FirstTwoCollViewCell



- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self.contentView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
        UIImageView *imagevi = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0,frame.size.width - 30*kJLXWidthScale, frame.size.width - 30*kJLXWidthScale)];
        imagevi.contentMode = UIViewContentModeScaleAspectFill;
        self.titImageview = imagevi;
        [self.contentView addSubview:imagevi];
        UILabel *lab = [UILabel new];
        lab.font = [UIFont systemFontOfSize:15*kJLXWidthScale];
        lab.textAlignment = NSTextAlignmentCenter;
        lab.textColor = [UIColor blackColor];
        self.titlab = lab;
        [self.contentView addSubview:lab];
        lab.sd_layout
        .topSpaceToView(imagevi, 0)
        .centerXEqualToView(imagevi)
        .widthRatioToView(imagevi, 1)
        .heightIs(20*kJLXWidthScale);
    }
    return self;
}

@end
